package com.stupidzhe.vbreview.bean;

import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

/**
 * frm文件结构
 */
public class FrmStructure {

    public String version;

    public List<Component> componentList = new LinkedList<>();

    public Map<String, String> Attribute = new HashMap<>(20);

    public List<Sub> subList = new LinkedList<>();

    public List<Function> functionList = new LinkedList<>();

    public class Component {
        public String type;
        public String name;
        public String caption;
        public Property property;

        public class Property {
            public String type;
            public String name;
        }
    }

    public class Sub {
        public String modifier;
        public String name;
        public String body = "";
    }

    public class Function {
        public String name;
        public String body;
    }
}
